From b885cfe4b82ef0bd8425352a26177b87cdc7d924 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Mon, 27 Nov 2017 00:34:41 -0600 Subject: [PATCH] Add Q_UNUSED to GDB (moer to come) to hush this class of warnings. --- gdb.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb.cc b/gdb.cc index 7b07060b2..3ee2f5392 100644 --- a/gdb.cc +++ b/gdb.cc @@ -445,7 +445,9 @@ read_file_header() is_fatal(strcmp(buf, "MsRcf") != 0, MYNAME ": Invalid file \"%s\"!", fin->name); reclen = FREAD_i32; + Q_UNUSED(reclen); i = FREAD_STR(buf); + Q_UNUSED(i); is_fatal(buf[0] != 'D', MYNAME ": Invalid file \"%s\"!", fin->name); gdb_ver = buf[1] - 'k' + 1; @@ -458,6 +460,7 @@ read_file_header() reclen = FREAD_i32; i = FREAD(buf, reclen + 1); + Q_UNUSED(i); if (global_opts.verbose_status > 0) { const char* name = buf+2; if (strstr(name, "SQA") == 0) { @@ -756,7 +759,7 @@ read_route() } } - links = 0; + // links = 0; points = FREAD_i32; #if GDB_DEBUG -- 2.30.2